home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Language/OS - Multiplatform Resource Library
/
LANGUAGE OS.iso
/
cpp_libs
/
nihcl-30.lha
/
nihcl-3.0
/
ex
/
ex8-7.c
< prev
next >
Wrap
C/C++ Source or Header
|
1990-05-15
|
498b
|
18 lines
// ex8-7.c -- sorting Patient records by name
// $Header: /afs/alw.nih.gov/unix/sun4_40c/usr/local/src/nihcl-3.0/share/ex/RCS/ex8-7.c,v 3.0 90/05/15 22:46:24 kgorlen Rel $
#include "SortedCltn.h"
#include "String.h"
#include "Patient.h"
main()
{
SortedCltn cltn;
cltn.add(*new Patient("Smith John A.","111-22-3333",22222));
cltn.add(*new Patient("Fried Harry I.","123-45-6789",22221));
cltn.add(*new Patient("Chavez Maria G.","444-555-6666",22223));
cout << cltn << endl;
}